package cn.tedu.csmallproductzxj.mapper;


import cn.tedu.csmallproductzxj.pojo.entity.Brand;
import cn.tedu.csmallproductzxj.pojo.vo.BrandCategoryListVO;

import cn.tedu.csmallproductzxj.pojo.vo.BrandStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BrandMapper {

    int insertBrand(Brand brand);

    int insertBatch(List<Brand> brandList);

    int deleteByIds(Long[] idList);

    int deleteBrandById(Long id);

    int update(Brand brand);

    int count();

    int countByName(String name);

    int countById(Long id);

    int countByNameAndId(String name,Long id);

    int countByNameAndNotId(Long id,String name);

    BrandStandardVO getStandardById(Long id);

    List<BrandCategoryListVO> list();



}
